From d1f000ef84249a04b385de896c2bf19dff02d30e Mon Sep 17 00:00:00 2001 From: "vh249@arcadians.cl.cam.ac.uk" Date: Mon, 1 Aug 2005 16:00:17 +0000 Subject: [PATCH] correct wrong variables pass to the set_pte_at macro. Signed-off-by: Vincent Hanquez --- linux-2.6-xen-sparse/mm/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-2.6-xen-sparse/mm/memory.c b/linux-2.6-xen-sparse/mm/memory.c index bfd0814d37..d62656eb8e 100644 --- a/linux-2.6-xen-sparse/mm/memory.c +++ b/linux-2.6-xen-sparse/mm/memory.c @@ -1814,12 +1814,12 @@ do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma, page_add_anon_rmap(page, vma, addr); } - set_pte_at(vma, addr, page_table, entry); + set_pte_at(mm, addr, page_table, entry); pte_unmap(page_table); /* No need to invalidate - it was non-present before */ update_mmu_cache(vma, addr, entry); - lazy_mmu_prot_update(entry); + lazy_mmu_prot_update(entry); spin_unlock(&mm->page_table_lock); out: return VM_FAULT_MINOR; @@ -1928,7 +1928,7 @@ retry: entry = mk_pte(new_page, vma->vm_page_prot); if (write_access) entry = maybe_mkwrite(pte_mkdirty(entry), vma); - set_pte_at(vma, address, page_table, entry); + set_pte_at(mm, address, page_table, entry); if (anon) { lru_cache_add_active(new_page); page_add_anon_rmap(new_page, vma, address); -- 2.30.2